package com.pearl.jacksoncore.demo.databind.anno;

import com.fasterxml.jackson.annotation.JsonMerge;

import java.util.Map;

/**
 * @author TD
 * @version 1.0
 * @date 2024/3/27
 */
class ObjectWithMap {
    String name;
    @JsonMerge
    Map<String, String> stringPairs;
    // Standard getters, setters and constructors

    public ObjectWithMap(String name, Map<String, String> stringPairs) {
        this.name = name;
        this.stringPairs = stringPairs;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, String> getStringPairs() {
        return stringPairs;
    }

    public void setStringPairs(Map<String, String> stringPairs) {
        this.stringPairs = stringPairs;
    }
}